import { reactive, defineComponent, ref, watch,inject } from 'vue';
import './detailEdgeLabel.scss'
export default defineComponent({
    name: 'detailEdgeLabel',
    props: {
        data: {
            type: Object,
        }
    },
    setup: (props, {emit}) => {
        const addSymbol = ref<any>(true)
        const isShsow = props.data?.type==='symbolCard' && props.data?.symbol === 'c'
        addSymbol.value = props.data?.correlation
        return () => {
            return (
                <>
                <div v-show={isShsow} class="add-reduce-symbol">
                    <span v-show={addSymbol.value}>+</span>
                    <span v-show={!addSymbol.value}>-</span>
                </div>
                    
                </>
            )
        }
    }
})